<?php
/**
 * 拼团模型
 * 20170105周家财添加
 */
defined('InShopNC') or exit('Access Invalid!');
class goods_flagModel extends Model {
    public function __construct(){
        parent::__construct('goods_flag');
    }
    
    public function save_goods_flag($data){
        return $this->table('goods_flag')->insert($data);
    }
    
    public function get_goods_flag($condition,$limit){
        return Model()->table('goods_flag')->where($condition)->order('flag_id desc')->limit($limit)->select();
    }
}
    